﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetNeural.BackPropagation;
using DotNetNeural.Activation;

namespace DotNetNeural.Test.Helpers
{
    /// <summary>
    /// Hides actual type of IPerceptron from all unit tests. This way we can change actual type of IPerceptron
    /// been tested by single line of code inside Create() method
    /// </summary>
    public class PerceptronFactory
    {
        public IPerceptron Create()
        {
            return new MultilayerPreceptron();
        }

        public IPerceptron Create(int inpCnt, int outCnt)
        {
            return new MultilayerPreceptron(inpCnt, outCnt);
        }

        public IPerceptron Create(int inpCnt, int outCnt, IActivationFunc activation)
        {
            return new MultilayerPreceptron(inpCnt, outCnt, activation);
        }
    }
}
